<div class="modal-content">
  <div class="modal-header">
    <h6 class="modal-title text-purple">上传文件</h6>
    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span></button>
  </div>
  <div class="modal-body py-4 text-center">
  {if function_exists('attachmentSave')}
    <form class="w-75 mx-auto py-3">
      <div class="input-group input-group-sm">
        <div class="input-group-prepend">
          <span class="input-group-text">设置积分</span>
        </div>
        <input class="form-control text-center" type="text" name="markDownScore" id="markDownScore" value="0" autocomplete="off" required>
        <div class="input-group-append">
          <button class="btn btn-purple" id="markDownUpload" type="button" style="border-top-right-radius: .2rem;border-bottom-right-radius: .2rem;" data-mime-types="{$Think.config.common.upload_mime_type|default='application/zip'}" data-max-size="{$Think.config.common.upload_max_size|default='5mb'}" data-url="{$path_upload}">
            <i class="fa fa-upload"></i> {:lang('upload')}
          </button>
        </div>
      </div>
    </form>
  {else/}
  <button class="btn btn-purple markDownUpload" type="button">
    <i class="fa fa-upload"></i> {:lang('upload')}
  </button>
  {/if}
  </div>
</div>